package com.kolaxy.ribbonconsumer;/*
 * 包    名:  com.kolaxy.ribbonconsumer
 * 描    述:  <描述>
 * 修 改 人:  zhourunjin
 * 修改时间:  2018/9/2
 */

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;


@RestController
public class ComsumerController {

    @Autowired
    private HelloService service;

    @RequestMapping(value = "/ribbon-consumer",method = RequestMethod.GET)
    public String helloConsumer(){
       return service.helloService();
    }
}
